package com.scut.campus.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

public enum PostStatusEnum {
    ACTIVE("A", "有效"),
    RISK("R", "风险"),
    BLACKLIST("B", "黑名单"),
    DELETED("D", "删除"),
    PRIVATE("P", "私密");

    @EnumValue
    private final String code;
    private final String description;

    PostStatusEnum(String code, String description) {
        this.code = code;
        this.description = description;
    }

    public String getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }
}
